package com.oalam.bookstore.domain.shopping;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrateur
 * @version 1.0
 * @created 28-juil.-2011 16:18:24
 */
public class Order {

    public enum Status {
        ORDERED,
        SHIPPED,
        CANCELED,
        IDLE
    }
    
    private List<ShoppingCartItem> items = new ArrayList<ShoppingCartItem>();
    private Status status = Status.IDLE;

    public Order(ShoppingCart cart) {
        items = cart.getItems();
        status = Status.ORDERED;
    }

    public List<ShoppingCartItem> getItems() {
        return items;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    

}